Switch Keyboard is an OSAX (AppleScript Scripting Addition) that switches to the next keyboard in the current Script System. This is equivalent to pressing Command-Option-Space on the keyboard, or choosing the next entry in the list of keyboard layouts from the Keyboard control panel.
The reason it works this way, rather than letting you specify the keyboard you would like to use, is because this is the only way to switch keyboards that I can find in the Mac OS. This means you will have to keep track of the active keyboard within your own script, e.g. by counting the number of times Seitch Keyboard is called and by knowing beforehand which keyboards are installed in your system.
Switch Keyboard is distributed as freeware. It may be freely distributed as long as no charge is levied for it's distribution, excepting normal downloading charges from a BBS or online service. It may not be included in any commercial product without my explicit prior permission, with the exception of shareware/freeware CD-ROMs, where it may be included provided I receive a copy of the finished CD-ROM.
Intro * User Docs * Source * Project Notes
© John Blackburne, johnb@hk.super.net, 9th June 1996